package org.example.SwitchDemo;

/**
 * @Author zj@uinpay.cn
 * @Date 2024/8/19 11:36
 */
public class SwitchTest {
    public static void main(String[] args) {
        typeTester(new String("1"));
    }

    static void typeTester(Object o) {
//        switch (o) {
//            case null -> System.out.println("null");
//            case String s -> System.out.println("String");
//            case Color c -> System.out.println("Color with " + " values");
//            case Point p -> System.out.println("Record class: " + p.toString());
//            case int[] ia -> System.out.println("Array of ints of length" + ia.length);
//            default -> System.out.println("Something else");
//        }
    }

}
